/*
 * @Author      : ZhouQiJun
 * @Date        : 2025-08-06 23:44:38
 * @LastEditors : ZhouQiJun
 * @LastEditTime: 2025-09-04 01:09:12
 * @Description : 工具函数
 */
import { isNil } from 'es-toolkit'

export { default as Transforms } from './Transforms'
export { default as Projections } from './Projections'
export { default as toProperties } from './toProperties'
export { default as SpecsFormat } from './SpecsFormat'
export { default as diff, diff2, type Comparator } from './diff'
export * from './resolutionCalculator'
export { default as assign } from './assign'
export * from './getter'
export * from './geoData'

/**
 * 角度转弧度
 * @param degree 角度
 * @return 弧度
 */
export function toRadian(degree: number | string): number | undefined {
  return isNil(degree) ? undefined : (+degree * Math.PI) / 180
}
